#include"my_map.h"
#include"my_set.h"

void test_1()
{
	my_set<int> s;
	s.insert(3);
	s.insert(2);
	s.insert(5);
	s.insert(4);
	s.insert(1);

	my_map<int, int> m;
	m.insert(make_pair(1, 1));
	m.insert(make_pair(3, 3));
	m.insert(make_pair(2, 2));

	my_set<int>::iterator sit = s.begin();
	while (sit != s.end())
	{
		cout << *sit << " ";
		++sit;
	}
	cout << endl;

	my_map<int, int>::iterator mit = m.begin();
	while (mit != m.end())
	{
		cout << mit->first << ":" << mit->second<<" ";
		++mit;
	}
	cout << endl;

}

int main()
{
	test_1();

	return 0;
}